<%@ page language="java" import="java.util.*" session="false"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
	<head>
		<script type="text/javascript" src="js/swfobject.js" /></script>
	</head>
	<body>
		<div id="my_chart"></div>
		<script type="text/javascript">
			function addChart(type) {
				var flashvars = {"data-file" : "/mys2sh/chart.action?type="+type};
				var params = {
					menu :"false",
					scale :"noScale",
					wmode :"opaque"
				};
				swfobject.embedSWF("open-flash-chart/open-flash-chart.swf", "my_chart",
						"550px", "350px", "9.0.0",
							"http://www.flexrain.cn/js/expressInstall.swf", flashvars, params);
			}
			addChart(0);
		</script>
		<br />
		<button onclick="addChart(0);">线状图</button>
		<button onclick="addChart(1);">柱状图</button>
		<button onclick="addChart(2);">饼状图</button>
		<button onclick="addChart(3);">3d柱状图</button>
	</body>
</html>